package com.hamilton.erik.pt.server.service;

import com.hamilton.erik.pt.server.configuration.PtConfiguration;
import com.hamilton.erik.pt.server.resource.AnimalResource;
import com.hamilton.erik.pt.server.resource.AuthenticationResource;
import com.hamilton.erik.pt.server.resource.EnclosureMaintenanceResource;
import com.hamilton.erik.pt.server.resource.EnclosureResource;
import com.hamilton.erik.pt.server.resource.FeedingResource;
import com.hamilton.erik.pt.server.resource.MedicalRecordResource;
import com.yammer.dropwizard.Service;
import com.yammer.dropwizard.config.Bootstrap;
import com.yammer.dropwizard.config.Environment;

public class PtService extends Service<PtConfiguration> {
    public static void main(String[] args) throws Exception {
        new PtService().run(args);
    }

	@Override
	public void initialize(Bootstrap<PtConfiguration> bootstrap) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void run(PtConfiguration config, Environment env)
			throws Exception {
		env.addResource(new AuthenticationResource());
		env.addResource(new AnimalResource());
		env.addResource(new EnclosureResource());
		env.addResource(new EnclosureMaintenanceResource());
		env.addResource(new FeedingResource());
		env.addResource(new MedicalRecordResource());
	}

}
